<?php
$toolbar    =new ToolBarHelper($act);
$toolbar->setSubmitAjax(true);

if($act=="email")
{
     $toolbar->SetTitle('[Email manager]');
    $toolbar->Back(getUrlBack());
    $toolbar->Delete();
    $toolbar->Apply();
}
else
{
    //$toolbar->setSubmitAjax(false);
    $toolbar->Save();
    $toolbar->background("email","Emails");
}
?>